﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Net;
using MyHttp.http;

namespace MyHttp
{
    public class HttpHandler
    {
        private HttpListenerContext context;
        private HttpListenerRequest request;
        private HttpListenerResponse response;
        private Request myRequest;
        private Response myResponse;

        public HttpHandler(HttpListenerContext context)
        {
            this.context = context;
            this.request = context.Request;
            this.response = context.Response;

            this.myRequest = new Request(request);
            this.myResponse = new Response();
        }

        private void parseResponse()
        {
            
        }

        public void handle()
        {
            this.response.OutputStream.Flush();
            this.response.OutputStream.Close();
        }
    }
}
